#pragma once
#include <qbprotocol/include/SSQBModel.h>
#include <widgets/SDialog.h>
#include <QStylePainter>
#include <vector>
#include <QWidget>

class QStackedLayout;
class STabCtrl;
class CreditDebtRankingData;
class CreditDebtRankingList;
class CPanListData;

class CreditDebtRanking : public SDialog
{
public:
	CreditDebtRanking(QWidget* p);
	~CreditDebtRanking() = default;

protected slots:
	void onTabSelected(int index);
	void onDataArrived();

protected:
	virtual SDialog* clone(QWidget* parent = nullptr) override;

protected:
	CreditDebtRankingData* getData() const;
	CreditDebtRankingList* CreateList(int index);
	void loadData();

private:
	STabCtrl* m_tab = nullptr;
	QStackedLayout* m_stackLayout = nullptr;
};